from typing import Protocol


class MutexProtocol(Protocol):
    def __init__(self, name: str): ...

    def acquire(self): ...

    def release(self): ...

    def close(self): ...

    def __enter__(self): ...

    def __exit__(self, exc_type, exc_val, exc_tb): ...
